<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<!--view层  模板-->
<div id="app">
    <lhk v-for="item in items" v-bind:item="item"></lhk>
</div>



<!--1、导入vue.js-->
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.21/dist/vue.min.js"></script>
<script>

    //定义一个Vue组件component
    Vue.component("lhk",{
        props: ['item'],
        template:"<li>{{item}}</li>"
    });

    var vm = new Vue({
        el:"#app",
        //Model：数据
        data:{
            items: ['Java',"Python","C"]
        }
    });
</script>

</body>
</html>